package plant;


public abstract  class Car {
    private Engine engine;


    private Gearbox gearbox;


    private Chassis chassis;


    public Car(Engine engine, Gearbox gearbox, Chassis chassis) {
        this.engine = engine;
        this.gearbox = gearbox;
        this.chassis = chassis;
    }

    @Override
    public String toString() {
        return "Car{" +
                "engine=" + engine +
                ", gearbox=" + gearbox +
                ", chassis=" + chassis +
                '}';
    }
}
